const list = [
    {
        "createBy": "admin",
        "createTime": "2023-04-23 16:11:33",
        "updateBy": null,
        "updateTime": null,
        "remark": null,
        "deptId": 100,
        "parentId": 0,
        "ancestors": "0",
        "deptName": "中山市创思特",
        "orderNum": 0,
        "leader": "创思特",
        "phone": "15888888888",
        "email": "ry@qq.com",
        "status": "0",
        "delFlag": "0",
        "parentName": null,
        "children": []
    },
    {
        "createBy": "admin",
        "createTime": "2023-04-23 16:11:33",
        "updateBy": null,
        "updateTime": null,
        "remark": null,
        "deptId": 1001,
        "parentId": 100,
        "ancestors": "0",
        "deptName": "开发部门",
        "orderNum": 0,
        "leader": "创思特",
        "phone": "15888888888",
        "email": "ry@qq.com",
        "status": "0",
        "delFlag": "0",
        "parentName": null,
        "children": []
    },
    {
        "createBy": "admin",
        "createTime": "2023-04-23 16:11:33",
        "updateBy": null,
        "updateTime": null,
        "remark": null,
        "deptId": 1002,
        "parentId": 100,
        "ancestors": "0",
        "deptName": "运维部门",
        "orderNum": 0,
        "leader": "创思特",
        "phone": "15888888888",
        "email": "ry@qq.com",
        "status": "0",
        "delFlag": "0",
        "parentName": null,
        "children": []
    },
    {
        "createBy": "admin",
        "createTime": "2023-04-23 16:11:33",
        "updateBy": null,
        "updateTime": null,
        "remark": null,
        "deptId": 101,
        "parentId": 0,
        "ancestors": "0",
        "deptName": "若依科技",
        "orderNum": 0,
        "leader": "若依",
        "phone": "15888888888",
        "email": "ry@qq.com",
        "status": "0",
        "delFlag": "0",
        "parentName": null,
        "children": []
    },
    {
        "createBy": "admin",
        "createTime": "2023-04-23 16:11:33",
        "updateBy": null,
        "updateTime": null,
        "remark": null,
        "deptId": 1011,
        "parentId": 101,
        "ancestors": "0",
        "deptName": "研发部门",
        "orderNum": 0,
        "leader": "若依科技",
        "phone": "15888888888",
        "email": "ry@qq.com",
        "status": "0",
        "delFlag": "0",
        "parentName": null,
        "children": []
    },
    {
        "createBy": "admin",
        "createTime": "2023-04-23 16:11:33",
        "updateBy": null,
        "updateTime": null,
        "remark": null,
        "deptId": 1012,
        "parentId": 101,
        "ancestors": "0",
        "deptName": "市场部门",
        "orderNum": 0,
        "leader": "若依科技",
        "phone": "15888888888",
        "email": "ry@qq.com",
        "status": "0",
        "delFlag": "0",
        "parentName": null,
        "children": []
    },
]
const deptData = [
    {
        id: 100,
        label: "中山市创思特",
        children: [
            {
                id: 1001,
                label: "开发部门",
            },
            {
                id: 1002,
                label: "运维部门",
            }
        ]
    },
    {
        id: 101,
        label: "若依科技",
        children: [
            {
                id: 1011,
                label: "研发部门",
            },
            {
                id: 1012,
                label: "市场部门",
            }
        ]
    }
]
export default [
    {
        url: '/dev-api/user/deptList',
        type: 'get',
        response: (config) => {
            return {
                code: 200,
                msg: '操作成功',
                total: list.length,
                data: list
            }
        }
    },
    {
        url: '/dev-api/user/deptTree',
        type: 'get',
        response: (config) => {
            return {
                code: 200,
                msg: '操作成功',
                total: deptData.length,
                data: deptData
            }
        }
    }
]